package cn.walls1717.wallsmall.ware.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用product服务
 *
 * @author walls1717
 * @since 2022/10/30 15:20
 **/
@FeignClient("wallsmall-product")
public interface ProductFeignService {

    /**
     * 根据skuId获取skuName
     *
     * @param skuId skuId
     * @return skuName
     */
    @GetMapping("/product/skuinfo/{skuId}")
    String getSkuNameBySkuId(@PathVariable("skuId") Long skuId);
}
